package com.atguigu.jinx.entity.dto;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author steve
 * @since 2025-08-07
 */
@Getter
@Setter
@ToString
@TableName("user_job_order")
public class UserJobOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id; // 自增ID

    @TableField("user_id")
    private Long userId; // 用户id

    @TableField("job_task_id")
    private Long jobTaskId; // 任务的id

    @TableField("status")
    private Byte status; // 状态 ：一般只有订单完成了之后才能结转到这里，状态为2

    @TableField(value = "received_at", fill = FieldFill.INSERT)
    private LocalDateTime receivedAt; // 接单时间

    @TableField("total_bonus")
    private BigDecimal totalBonus; // 该会员一共从这一笔订单里面拿到了多少钱

    @TableField("complete_datetime")
    private LocalDateTime completeDatetime; // 结单日期
}
